{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}
<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<div class="form-div">
	<form method="post" action="account_log.php?act=list&user_id={$Think.get.user_id}" name="searchForm">
		<select name="account_type" onchange="document.forms['searchForm'].submit()">
			<option value="" <if condition="$account_type eq ''">selected="selected"</if> >所有账户</option>
			<option value="user_money" <if condition="$account_type eq 'user_money'">selected="selected"</if> >可用资金帐户</option>
			<option value="frozen_money" <if condition="$account_type eq 'frozen_money'">selected="selected"</if> >冻结资金帐户</option>
			<option value="rank_points" <if condition="$account_type eq 'rank_points'">selected="selected"</if> >等级积分帐户</option>			
			<option value="pay_points"  <if condition="$account_type eq 'pay_points'">selected="selected"</if> >消费积分帐户</option>
		</select>
		<strong>当前会员：</strong>{$user.user_name}
		<strong>可用资金帐户：</strong>{$user.formated_user_money}
		<strong>冻结资金帐户：</strong>{$user.formated_frozen_money}
		<strong>等级积分帐户：</strong>{$user.rank_points}
		<strong>消费积分帐户：</strong>{$user.pay_points}
	</form>
</div>

<form method="post" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1" width="100%" border="1">
			<tr>
				<th width="20%">帐户变动时间</th>
				<th width="30%">帐户变动原因</th>
				<th>可用资金帐户</th>
				<th>冻结资金帐户</th>
				<th>等级积分帐户</th>
				<th>消费积分帐户</th>
			</tr>
			<volist name="account_list" id="account">
			<tr>
				<td>{$account.change_time}</td>
				<td>{$account.change_desc}</td>
				<td align="right">
					<if condition="$account['user_money'] gt 0">
						<span style="color:#0000FF">+{$account.user_money}</span>
					<elseif condition="$account['user_money'] lt 0"/>
						<span style="color:#FF0000">{$account.user_money}</span>
					<else/>
						{$account.user_money}
					</if>
				</td>
				<td align="right">
					<if condition="$account['frozen_money'] gt 0">
						<span style="color:#0000FF">+{$account.frozen_money}</span>
					<elseif condition="$account['frozen_money'] lt 0"/>
						<span style="color:#FF0000">{$account.frozen_money}</span>
					<else/>
						{$account.frozen_money}
					</if>
				</td>
				<td align="right">
					<if condition="$account['rank_points'] gt 0">
						<span style="color:#0000FF">+{$account.rank_points}</span>
					<elseif condition="$account['rank_points'] lt 0"/>
						<span style="color:#FF0000">{$account.rank_points}</span>
					<else/>
						{$account.rank_points}
					</if>
				</td>
				<td align="right">
					<if condition="$account['pay_points'] gt 0">
						<span style="color:#0000FF">+{$account.pay_points}</span>
					<elseif condition="$account['pay_points'] lt 0"/>
						<span style="color:#FF0000">{$account.pay_points}</span>
					<else/>
						{$account.pay_points}
					</if>
				</td>
			</tr>
			</volist>
		</table>
		<include file="Library:paginator"/>
	</div>
</form>

<script type="text/javascript" language="javascript">
	onload = function(){// 开始检查订单
		startCheckOrder();
	}
</script>